package com.devplatform.service.article;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.devplatform.pojo.dto.ArticleDto;

import java.util.List;
import java.util.Map;

public interface IArticleDtoService {
    // 基础分页查询
    Page<ArticleDto> pageArticles(Page<ArticleDto> page);

    // 搜索分页
    Page<ArticleDto> searchArticles(Page<ArticleDto> page, Map<String, Object> params);

    // 筛选分页
    Page<ArticleDto> filterArticles(Page<ArticleDto> page, Map<String, Object> params);

    // 热门推荐分页
    Page<ArticleDto> recommendHotArticles(Page<ArticleDto> page, QueryWrapper wrapper);

    List<ArticleDto> getHotTop100Articles(String categoryName);

    //查询单篇文章细节
    ArticleDto getArticleDetails(Long authorId, Long articleId);
}
